package com.acme.bankapp.domain.bank;

import java.util.ArrayList;

public class Client {
    private ArrayList<Account> accounts = new ArrayList<Account>();
    private Gender gender;
    private String name;

    public Client(final String name, final Gender gender) {
        this.name = name;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void getClientSalutation() {
        System.out.print(gender.getGreet() + name);
    }

    public void addAccount(Account account) {
        accounts.add(account);
    }

    public ArrayList<Account> getAccounts() {
        return accounts;
    }
}
